const getters = {
  // 在页面中,使用模块中的数据 this.$store.state.app.sidebar
  // 拆分成 getters 以后, this.$store.getters.sidebar
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto
}
export default getters
